package com.ruoyi.suppliers.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 供应商产品
对象 product
 * 
 * @author ruoyi
 * @date 2024-10-31
 */
public class Product extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品id */
    private Long pId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String pName;

    /** 供应商id */
    private Long sId;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String sName;


    /** 规格型号 */
    @Excel(name = "规格型号")
    private String specs;

    /** 产品描述 */
    @Excel(name = "产品描述")
    private String pNotes;

    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }
    public void setpName(String pName) 
    {
        this.pName = pName;
    }

    public String getpName() 
    {
        return pName;
    }
    public void setsId(Long sId) 
    {
        this.sId = sId;
    }

    public String getsName() { return sName; }

    public void setsName(String sName) { this.sName = sName; }

    public Long getsId()
    {
        return sId;
    }
    public void setSpecs(String specs) 
    {
        this.specs = specs;
    }

    public String getSpecs() 
    {
        return specs;
    }
    public void setpNotes(String pNotes) 
    {
        this.pNotes = pNotes;
    }

    public String getpNotes() 
    {
        return pNotes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pId", getpId())
            .append("pName", getpName())
            .append("sName", getpName())
            .append("sId", getsId())
            .append("specs", getSpecs())
            .append("pNotes", getpNotes())
            .toString();
    }
}
